package Java9_11;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class Work2 {
    public static void main(String[] args) {
        SimpleDateFormat sj = new SimpleDateFormat();
        Scanner sc = new Scanner(System.in);
        System.out.println("输入日期");
        sj.applyPattern("yyyy.MM.dd");
        String a = sc.next();
        sj.setLenient(false);
        Date date = null;
        try {
            date = sj.parse(a);
        } catch (ParseException e) {
            e.printStackTrace();
        }
        sj.applyPattern("yyyy年MM月dd日今天是E");
        System.out.println(sj.format(date));
    }
}
